package com.code.user.service.mapper;

import com.code.commons.dao.CrudMapper;
import com.code.user.model.po.LoginCredential;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 登录凭证持久层映射接口
 *
 * @author tangyifei
 * @since 2019-5-24 10:20:01
 */
@Repository
public interface LoginCredentialMapper extends CrudMapper<LoginCredential> {

    void modifyTranPwd(@Param("id") Long id, @Param("newTranPwd") String newTranPwd, @Param("updateTime") Date updateTime);

    LoginCredential getUserLoginCredential(@Param("userId") String userId);
}
